<template>
  <el-dialog
    title="添加员工"
    class="gl_dialog_TitleLine gl_dl_footer"
    :visible.sync="dialogVisible"
    :close-on-click-modal="false"
    width="632px"
    top="25vh"
  >
    <el-scrollbar>
      <el-form ref="addStaff" v-model="addStaff" class="gl_form_mini" label-position="top" label-width="120px" style="padding:0 30px">
        <el-form-item label="登录账号:">
          <el-input v-model="addStaff.phone" placeholder="请输入" maxlength="30" type="text" size="mini" />
        </el-form-item>
      </el-form>
    </el-scrollbar>
    <span slot="footer" class="dialog-footer">
      <!-- 取消按钮 -->
      <el-button size="mini">{{ $t('button.cancel') }}</el-button>
      <!-- 编辑的保存按钮 -->
      <el-button size="mini" type="primary" @click="add">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      addStaff: ''
    };
  },
  methods: {
    add() {
      this.$emit('flag', true);
      this.dialogVisible = false;
    }
  }

};
</script>
<style>
</style>
